package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javafx.beans.property.ObjectProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author: Mikey
 * @Date:  2025/9/9 11:46
 * @Description: 
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_contract")
public class Contract implements Serializable {
    /**
     * 合同id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺id
     */
    @TableField(value = "shop_id")
    @NotNull(message = "店铺id不能为空")
    private Integer shopId;

    /**
     * 类别id
     */
    @TableField(value = "category_id")
    @NotNull(message = "类别不能为空")
    private Integer categoryId;

    /**
     * 合同开始时间
     */
    @TableField(value = "contract_start_time")
    @NotNull(message = "合同开始时间不能为空")
    private Date contractStartTime;

    /**
     * 合同结束时间
     */
    @TableField(value = "contract_end_time")
    @NotNull(message = "合同结束时间不能为空")
    private Date contractEndTime;

    /**
     * 合同状态 0待审核 1审核通过 2审核拒绝
     */
    @TableField(value = "contract_status")
    private Integer contractStatus;

    @TableField(exist = false)
    private List<String> urls;

    @TableField(exist = false)
    private String shopName;
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String categoryName;

    private static final long serialVersionUID = 1L;
}